package com.itic.appbase.framework.type;

public enum SendMethod {

    Express("express","物流配送"),MySelf("myself","自己配送");
    private String state;
    private String name;

    SendMethod(String state, String name) {
        this.state = state;
        this.name = name;
    }

    public void setState(String state) {
        this.state = state;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getState() {
        return state;
    }

    public String getName() {
        return name;
    }

    public static SendMethod getSendMethod(String metohd){
        SendMethod sendMethod = null;
        switch (metohd){
            case "express":
                sendMethod = SendMethod.Express;
                break;
            case "myself":
                sendMethod = SendMethod.MySelf;
                break;
        }
        return sendMethod;
    }
}
